function renderButtonHead(thElem, col) {
    thElem.className = 'et-button-th';
    thElem.innerText = col.title;
}

function renderButtonBody(tdElem, col, rawData, index, tabelObj) {
    for (let button of col.buttons) {
        let buttonElem = document.createElement('button');
        buttonElem.className = 'et-button-td-btn'
        tdElem.appendChild(buttonElem);
        buttonElem.innerText = button.text;
        buttonElem.onclick = function () {
            button.click(col, rawData, index, tabelObj);
        }
    }
}

export { renderButtonHead, renderButtonBody };